//
//  SYHttpTools.h
//  BSHOUYIFANG
//
//  Created by 曹雁彬 on 15/11/9.
//  Copyright © 2015年 CYB. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SYHttpTools : NSObject
+(instancetype)defaultManager;

- (void)get:(NSString *)url success:(void(^)(id result))success error:(void(^)(NSError *error))error;
+ (void)get:(NSString *)url success:(void(^)(id result))success error:(void(^)(NSError *error))error;
- (void)post:(NSString *)url parameters:(NSDictionary *)parameters success:(void(^)(id result))success error:(void(^)(NSError *error))error;
+ (void)post:(NSString *)url parameters:(NSDictionary *)parameters success:(void(^)(id result))success error:(void(^)(NSError *error))error;
@end
